import request from '@/utils/request'

/**
 * 用户访问记录分页查询
 * @param {查询条件} data
 */
export function listUservisit(query) {
  return request({
    url: 'visit/Uservisit/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增用户访问记录
 * @param data
 */
export function addUservisit(data) {
  return request({
    url: 'visit/Uservisit',
    method: 'post',
    data: data,
  })
}
/**
 * 修改用户访问记录
 * @param data
 */
export function updateUservisit(data) {
  return request({
    url: 'visit/Uservisit',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取用户访问记录详情
 * @param {Id}
 */
export function getUservisit(id) {
  return request({
    url: 'visit/Uservisit/' + id,
    method: 'get'
  })
}

/**
 * 删除用户访问记录
 * @param {主键} pid
 */
export function delUservisit(pid) {
  return request({
    url: 'visit/Uservisit/delete/' + pid,
    method: 'POST'
  })
}
